package com.z.service.impl;

import com.z.entity.AuRights;
import com.z.mapper.AuRightsMapper;
import com.z.service.AuRightsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zz
 * @since 2021-08-13
 */
@Service
public class AuRightsServiceImpl extends ServiceImpl<AuRightsMapper, AuRights> implements AuRightsService {
    @Autowired
    AuRightsMapper auRightsMapper;

    @Override
    public List<String> getAssignedAuthNameByAdminId(Integer adminId) {
        return auRightsMapper.selectAuRightsNameByUserId(adminId);
    }

}
